package testcasegenerator;

import java.util.ArrayList;

public class TestClassCase {

	private String packageName;
	private String className;
	private ArrayList<TestMethodCase> testMethodSuiteList;
	
	public TestClassCase(String classname){
		this.className = classname;
		testMethodSuiteList = new ArrayList<TestMethodCase>();
	}
	
	public TestClassCase(String classname, ArrayList<TestMethodCase> tsList ){
		this.className = classname;
		testMethodSuiteList = new ArrayList<TestMethodCase>();
		
		for(TestMethodCase ts : tsList ){
			TestMethodCase testsuite = new TestMethodCase(ts.getMethodName());
			testMethodSuiteList.add(testsuite);
		}
	}
	
	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public ArrayList<TestMethodCase> getTestsuiteList() {
		return testMethodSuiteList;
	}

	public void setTestsuiteList(ArrayList<TestMethodCase> testsuiteList) {
		this.testMethodSuiteList = testsuiteList;
	}
	
	public void addTestMethodSuite(TestMethodCase testsuite){
		testMethodSuiteList.add(testsuite);
	}	
	
	public String toString(){
		String result = "TestClassCase: \n";
		result += "Class name: " + className + "\n";
		
		for(TestMethodCase testmethodsuite : testMethodSuiteList){
			result += testmethodsuite.toString();
		}
		
		return result;
	}
}
